// 对token做持久化

const GEEK_PC_TOKEN = 'GEEK_PC_TOKEN'
export function setToken (token) {
  localStorage.setItem(GEEK_PC_TOKEN, token)
}

export function getToken () {
  return localStorage.getItem(GEEK_PC_TOKEN)
}

export function removeToken () {
  localStorage.removeItem(GEEK_PC_TOKEN)
}

export function hasToken () {
  return !!localStorage.getItem(GEEK_PC_TOKEN)
}
